<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>修改学生信息</title>
  </head>
  
  <body>
    <form action="<%=basePath%>student/studentAction_updateStudent.action" method="post"> 
    	<input type="hidden" name="sid" value="${student.sid }"/><br/>
    	姓名：<input type="text" name="name" value="${student.name }"/><br/>
    	年龄：<input type="text" name="age" value="${student.age }"/><br/>
    	性别：<select name="sex">
			    <option value="1" <c:if test="${student.sex==1 }"> selected="selected"</c:if>>男</option>
			    <option value="0" <c:if test="${student.sex==0 }"> selected="selected"</c:if>>女</option>
		    </select><br/>
    	<input type="submit" value="提交"/>
    </form>
  </body>
</html>
